fix(rpc): Return detailed errors to the RPC client when a block proposal fails #5993
+49
−49
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
We are currently testing Zebra's block templates in ticket #5803. But I can't work out if Zebra's errors are expected or the same as
zcashd
, because it doesn't return any error information at all.This PR changes the error handling from bug #5981, it probably gets us closer to a fix.
(But to match
zcashd
we'd need to stop pretty printing, and change the format of the error string.)Specifications
We can do whatever we like here, because bug #5981 will fix up any mining pool compatibility issues.
Solution
Review
This seems like a high priority because testing is difficult without it.
Reviewer Checklist